package com.ly.gof.structure.facade;

/**
 * @author liuyang
 * @des
 * @Version 1.0
 * @Date: 26/07/2021 10:51
 */
//外观（Facade）角色：为多个子系统对外提供一个共同的接口。
public class Facade {
    private SubSystem01 obj1 = new SubSystem01();
    private SubSystem02 obj2 = new SubSystem02();
    private SubSystem03 obj3 = new SubSystem03();

    public void method() {
        obj1.method1();
        obj2.method2();
        obj3.method3();
    }
}
